<? 
	require_once('includes/conn.php');
$country=intval($_GET['country']);


 $sc = "SELECT id,name FROM states WHERE country_id='$country'";


		$qc = mysql_query($sc) or die($sc);
?>





<select style="width:310px;" name="state" onchange="getCity(<?=$country?>,this.value)">
 <option value="0">Select State</option>
  <? while($row=mysql_fetch_array($qc)) { ?>
    <option value=<?=$row['id']?>><?=$row['name']?></option>
  <? } ?>
</select>